export function getAllContracts() {
  return Promise.resolve({
    success: true,
    result: [
      { cid: 1, contractPrice: 4.9, executionPrice: 26, type: "C", date: "20220502", volatility: 0.1234 },
      { cid: 2, contractPrice: 5.1, executionPrice: 27, type: "C", date: "20220502", volatility: 0.1234 },
      { cid: 3, contractPrice: 5.2, executionPrice: 28, type: "C", date: "20220502", volatility: 0.1234 },
      { cid: 4, contractPrice: 5.3, executionPrice: 29, type: "C", date: "20220502", volatility: 0.1234 },
      { cid: 5, contractPrice: 5.4, executionPrice: 30, type: "C", date: "20220502", volatility: 0.1234 },
      { cid: 6, contractPrice: 6.6, executionPrice: 66, type: "C", date: "20220506", volatility: 0.1234 },
      { cid: 7, contractPrice: 6.6, executionPrice: 66, type: "C", date: "20220506", volatility: 0.1234 },
      { cid: 8, contractPrice: 5.5, executionPrice: 31, type: "C", date: "20220502", volatility: 0.1234 },
      { cid: 9, contractPrice: 4.9, executionPrice: 26, type: "P", date: "20220502", volatility: 0.1234 },
      { cid: 10, contractPrice: 5.1, executionPrice: 27, type: "P", date: "20220502", volatility: 0.1234 },
      { cid: 11, contractPrice: 5.2, executionPrice: 28, type: "P", date: "20220502", volatility: 0.1234 },
      { cid: 12, contractPrice: 5.3, executionPrice: 29, type: "P", date: "20220502", volatility: 0.1234 },
      { cid: 13, contractPrice: 5.4, executionPrice: 30, type: "P", date: "20220502", volatility: 0.1234 },
      { cid: 14, contractPrice: 5.4, executionPrice: 30, type: "P", date: "20220502", volatility: 0.1234 },
      { cid: 15, contractPrice: 5.5, executionPrice: 31, type: "P", date: "20220502", volatility: 0.1234 },
      { cid: 16, contractPrice: 5.5, executionPrice: 31, type: "P", date: "20220502", volatility: 0.1234 },
      { cid: 17, contractPrice: 5.8, executionPrice: 33, type: "P", date: "20220503", volatility: 0.1254 },
      { cid: 18, contractPrice: 5.8, executionPrice: 35, type: "P", date: "20220502", volatility: 0.1254 }
    ]
  })
}

export function confirm() {

}

